package com.cheer.dto;

import com.cheer.entity.StandingBookDocument;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author cheer
 */
@Data
@Accessors(chain = true)
public class DocumentDTO {

    private Integer number;

    private String url;

    public StandingBookDocument build(Long accountId) {
        StandingBookDocument document = new StandingBookDocument();
        document.setAccountId(accountId);
        document.setDocType(number + 2);
        document.setDocUrl(url);
        return document;
    }
}
